<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>仪表盘 - 短视频爆火预测分析软件</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f8f9fa;
            height: 100vh;
            overflow: hidden;
        }
        .sidebar {
            width: 240px;
            background-color: #1a202c;
            color: #fff;
            height: 100vh;
            transition: all 0.3s;
        }
        .sidebar-link {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            color: #cbd5e0;
            transition: all 0.2s;
        }
        .sidebar-link:hover, .sidebar-link.active {
            background-color: #2d3748;
            color: white;
        }
        .sidebar-link i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }
        .content-area {
            flex: 1;
            overflow-y: auto;
            height: calc(100vh - 60px);
        }
        .top-bar {
            height: 60px;
            background-color: white;
            border-bottom: 1px solid #e2e8f0;
        }
        .stat-card {
            transition: all 0.3s;
        }
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .chart-container {
            height: 300px;
            position: relative;
        }
    </style>
</head>
<body>
    <div class="flex h-screen">
        <!-- Sidebar -->
        <div class="sidebar">
            <div class="p-4 flex items-center border-b border-gray-700">
                <img src="https://images.unsplash.com/photo-1611162617213-7d7a39e9b1d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" alt="Logo" class="w-10 h-10 rounded-md">
                <div class="ml-3">
                    <div class="font-bold text-white">爆火预测</div>
                    <div class="text-xs text-gray-400">AI视频分析平台</div>
                </div>
            </div>
            
            <div class="mt-4">
                <a href="dashboard.html" class="sidebar-link active">
                    <i class="fas fa-tachometer-alt"></i> 仪表盘
                </a>
                <a href="upload.html" class="sidebar-link">
                    <i class="fas fa-cloud-upload-alt"></i> 视频上传
                </a>
                <a href="analysis.html" class="sidebar-link">
                    <i class="fas fa-chart-bar"></i> 分析报告
                </a>
                <a href="suggestions.html" class="sidebar-link">
                    <i class="fas fa-lightbulb"></i> 优化建议
                </a>
                <a href="history.html" class="sidebar-link">
                    <i class="fas fa-history"></i> 历史记录
                </a>
                <div class="border-t border-gray-700 my-4"></div>
                <a href="settings.html" class="sidebar-link">
                    <i class="fas fa-cog"></i> 设置
                </a>
            </div>
        </div>
        
        <!-- Main Content -->
        <div class="flex-1 flex flex-col">
            <!-- Top Bar -->
            <div class="top-bar flex items-center justify-between px-6">
                <div class="flex items-center">
                    <button class="mr-4 text-gray-500 hover:text-gray-700">
                        <i class="fas fa-bars"></i>
                    </button>
                    <h1 class="text-xl font-semibold text-gray-800">仪表盘</h1>
                </div>
                
                <div class="flex items-center">
                    <button class="p-2 rounded-full hover:bg-gray-100 text-gray-600 mr-2">
                        <i class="fas fa-bell"></i>
                    </button>
                    <button class="p-2 rounded-full hover:bg-gray-100 text-gray-600 mr-4">
                        <i class="fas fa-question-circle"></i>
                    </button>
                    <div class="flex items-center">
                        <img src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" 
                             alt="User" class="w-8 h-8 rounded-full">
                        <span class="ml-2 text-gray-700">张明</span>
                        <i class="fas fa-chevron-down ml-2 text-gray-500 text-xs"></i>
                    </div>
                </div>
            </div>
            
            <!-- Content Area -->
            <div class="content-area p-6 bg-gray-50">
                <!-- Welcome Section -->
                <div class="flex justify-between items-center mb-6">
                    <div>
                        <h2 class="text-2xl font-bold text-gray-800">欢迎回来，张明</h2>
                        <p class="text-gray-600">今天是 2025年3月15日，星期五</p>
                    </div>
                    <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center">
                        <i class="fas fa-plus mr-2"></i> 新建分析
                    </button>
                </div>
                
                <!-- Stats Cards -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
                    <div class="bg-white rounded-lg shadow p-6 stat-card border-l-4 border-blue-500">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">本周分析视频</p>
                                <h3 class="text-2xl font-bold mt-1">24</h3>
                                <p class="text-green-500 text-sm mt-2">
                                    <i class="fas fa-arrow-up mr-1"></i> 12% 较上周
                                </p>
                            </div>
                            <div class="bg-blue-100 p-3 rounded-full">
                                <i class="fas fa-video text-blue-500"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow p-6 stat-card border-l-4 border-green-500">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">平均爆火得分</p>
                                <h3 class="text-2xl font-bold mt-1">78.5</h3>
                                <p class="text-green-500 text-sm mt-2">
                                    <i class="fas fa-arrow-up mr-1"></i> 5.2% 较上周
                                </p>
                            </div>
                            <div class="bg-green-100 p-3 rounded-full">
                                <i class="fas fa-chart-line text-green-500"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow p-6 stat-card border-l-4 border-purple-500">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">最高爆火得分</p>
                                <h3 class="text-2xl font-bold mt-1">92.7</h3>
                                <p class="text-gray-500 text-sm mt-2">
                                    《夏日穿搭技巧》
                                </p>
                            </div>
                            <div class="bg-purple-100 p-3 rounded-full">
                                <i class="fas fa-fire text-purple-500"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow p-6 stat-card border-l-4 border-yellow-500">
                        <div class="flex justify-between items-start">
                            <div>
                                <p class="text-gray-500 text-sm">待优化视频</p>
                                <h3 class="text-2xl font-bold mt-1">7</h3>
                                <p class="text-red-500 text-sm mt-2">
                                    <i class="fas fa-arrow-up mr-1"></i> 2 较上周
                                </p>
                            </div>
                            <div class="bg-yellow-100 p-3 rounded-full">
                                <i class="fas fa-exclamation-triangle text-yellow-500"></i>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Charts Section -->
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold text-gray-800">爆火得分趋势</h3>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 text-sm bg-blue-50 text-blue-600 rounded-full">周</button>
                                <button class="px-3 py-1 text-sm text-gray-500 rounded-full">月</button>
                                <button class="px-3 py-1 text-sm text-gray-500 rounded-full">年</button>
                            </div>
                        </div>
                        <div class="chart-container">
                            <img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80" 
                                 alt="Line Chart" class="w-full h-full object-contain">
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-lg shadow p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="font-semibold text-gray-800">维度分析对比</h3>
                            <div>
                                <select class="text-sm border rounded-md px-2 py-1 text-gray-600">
                                    <option>最近10个视频</option>
                                    <option>最近30个视频</option>
                                    <option>所有视频</option>
                                </select>
                            </div>
                        </div>
                        <div class="chart-container">
                            <img src="https://images.unsplash.com/photo-1543286386-713bdd548da4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80" 
                                 alt="Bar Chart" class="w-full h-full object-contain">
                        </div>
                    </div>
                </div>
                
                <!-- Recent Videos -->
                <div class="bg-white rounded-lg shadow">
                    <div class="p-6 border-b">
                        <div class="flex justify-between items-center">
                            <h3 class="font-semibold text-gray-800">最近分析的视频</h3>
                            <a href="history.html" class="text-blue-600 text-sm hover:underline">查看全部</a>
                        </div>
                    </div>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead class="bg-gray-50">
                                <tr>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">视频</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">爆火得分</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">分析时间</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="flex-shrink-0 h-10 w-16 bg-gray-300 rounded overflow-hidden">
                                                <img src="https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" alt="Video Thumbnail">
                                            </div>
                                            <div class="ml-4">
                                                <div class="text-sm font-medium text-gray-900">夏日穿搭技巧大公开</div>
                                                <div class="text-sm text-gray-500">时长: 2:45</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm text-gray-900 font-semibold">92.7</div>
                                        <div class="w-full bg-gray-200 rounded-full h-2 mt-1">
                                            <div class="bg-green-500 h-2 rounded-full" style="width: 92.7%"></div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                        2025-03-14 15:30
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                            爆款潜力
                                        </span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                        <a href="analysis.html" class="text-blue-600 hover:text-blue-900 mr-3">查看</a>
                                        <a href="#" class="text-gray-600 hover:text-gray-900">导出</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="flex-shrink-0 h-10 w-16 bg-gray-300 rounded overflow-hidden">
                                                <img src="https://images.unsplash.com/photo-1493770348161-369560ae357d?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" alt="Video Thumbnail">
                                            </div>
                                            <div class="ml-4">
                                                <div class="text-sm font-medium text-gray-900">10分钟早餐制作教程</div>
                                                <div class="text-sm text-gray-500">时长: 9:12</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm text-gray-900 font-semibold">85.3</div>
                                        <div class="w-full bg-gray-200 rounded-full h-2 mt-1">
                                            <div class="bg-green-500 h-2 rounded-full" style="width: 85.3%"></div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                        2025-03-13 09:45
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                                            爆款潜力
                                        </span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                        <a href="analysis.html" class="text-blue-600 hover:text-blue-900 mr-3">查看</a>
                                        <a href="#" class="text-gray-600 hover:text-gray-900">导出</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center">
                                            <div class="flex-shrink-0 h-10 w-16 bg-gray-300 rounded overflow-hidden">
                                                <img src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" alt="Video Thumbnail">
                                            </div>
                                            <div class="ml-4">
                                                <div class="text-sm font-medium text-gray-900">编程入门指南2025</div>
                                                <div class="text-sm text-gray-500">时长: 15:30</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="text-sm text-gray-900 font-semibold">67.8</div>
                                        <div class="w-full bg-gray-200 rounded-full h-2 mt-1">
                                            <div class="bg-yellow-500 h-2 rounded-full" style="width: 67.8%"></div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                        2025-03-12 14:20
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
                                            需优化
                                        </span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                        <a href="analysis.html" class="text-blue-600 hover:text-blue-900 mr-3">查看</a>
                                        <a href="suggestions.html" class="text-green-600 hover:text-green-900">优化</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 